package com.infotel.media;

public class UserNavigateur implements Comparable<UserNavigateur>{
    private String ip;
    private String browser;
    private String version;


    public String getBrowser() {
        return browser;
    }

    public void setBrowser(String browser) {
        this.browser = browser;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public UserNavigateur(String ip, String browser, String version) {
        this.ip = ip;
        this.browser = browser;
        this.version = version;
        // TODO Auto-generated constructor stub
    }
    public UserNavigateur(String ip, Navigateur n) {
        this.ip = ip;
        this.browser = n.getBrowser();
        this.version = n.getVersion();
        // TODO Auto-generated constructor stub
    }

   @Override
   public boolean equals(Object o){
       return this.ip.equals(((UserNavigateur)o).getIp());
       
   }
   @Override
   public int hashCode() {
       return this.ip.hashCode();
   }
  

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    @Override
    public int compareTo(UserNavigateur o) {
        return this.ip.compareTo(((UserNavigateur) o).getIp());

    }
}
